package com.aftersale.demo.mapper;

import com.aftersale.demo.entity.RolePermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Entity com.aftersale.demo.entity.RolePermission
 */
public interface RolePermissionMapper extends BaseMapper<RolePermission> {
    @Select("select permission_id from role_permission where role_id =#{roleId}")
    List<Integer> rp(Integer roleId);
}




